import i18n from '@/language/index'

export const t = i18n.global.t

export default function ChatModel(id = null, chatName = null, chatDesc = null) {
    this.id = id;
    this.chatName = chatName;
    this.chatDesc = chatDesc;

    this.rules = {
        className: [
            {required: true, message: t('menu.1'), trigger: 'blur'},
        ],
    }
}